const MyKoa = require('./koa.cjs');

class Server {
    constructor() {
        new MyKoa(__dirname, __dirname)
            .route([
                ['/bg-color', this.bg_color],
                ['/bg-image', this.bg_image]
            ])
            .start(3080)
    }

    bg_color = async (ctx) => {
        await ctx.render(`bg_color_switch/index`)
    }

    async bg_image(ctx) {
        await ctx.render(`bg_img_switch/index`)
    }
}

new Server()
